package com.designpatterns.builderpattern;

import com.designpatterns.builderpattern.impl.item.Burger.ChickenBurger;
import com.designpatterns.builderpattern.impl.item.Burger.VegBurger;
import com.designpatterns.builderpattern.impl.item.ColdDrink.Coke;
import com.designpatterns.builderpattern.impl.item.ColdDrink.Pepsi;

//6.创建一个 MealBuilder 类，实际的 builder 类负责创建 Meal 对象
public class MealBuilder
{
	public Meal prepareVegMeal()
	{
		Meal meal = new Meal();
		meal.addItem(new VegBurger());
		meal.addItem(new Coke());
		return meal;
	}

	public Meal prepareNonVegMeal()
	{
		Meal meal = new Meal();
		meal.addItem(new ChickenBurger());
		meal.addItem(new Pepsi());
		return meal;
	}
}
